<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>会员码</title>
  <script src="__INDEX__/js/mui.min.js"></script>
	<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
	<link rel="stylesheet" href="__INDEX__/css/style.css" />
	<link rel="stylesheet" href="__INDEX__/css/mall.css" />	
	<style type="text/css">
		.huiym_erweima canvas,.huiym_erweima{width: 240px; height: 55px; margin: 0 auto;}
		@media only screen and (min-width: 321px){.huiym_erweima canvas,.huiym_erweima{width: 270px; height: 60px;}}
		@media only screen and (min-width: 381px){.huiym_erweima canvas,.huiym_erweima{width: 320px; height: 75px;}}
		@media only screen and (width: 384px){.huiym_erweima canvas,.huiym_erweima{width: 280px; height: 65px;}}
		@media only screen and (min-width: 600px){.huiym_erweima canvas,.huiym_erweima{width: 500px; height: 110px;}}
		body,.mui-content{background: #878787;}	
	</style>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
	    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="JavaScript:history.go(-1)"></a>
	    <h1 class="mui-title">会员码</h1>
	</header>
	<div class="mui-content">
	    <div class="huiymbt"><img src="__INDEX__/images/huiym.jpg"></div>
	    <div class="huiymconbox">
	    	<div class="line"></div>
	    	<div class="huiym_erweima"  >
				<img src="/extend/barcode/bar.php?text={$Think.session.info_user.no}"  />
			</div>
			<div class="huiym_num"></div>
	    </div>
	    <div id="qrcode" style="text-align: center;margin-top: 10px;">
	    	
	    </div>
	    <div class="huiym_tip">本会员码不定时更新，请勿截屏以免影响使用。</div>
	</div>
</body>
</html>
{include file="public/footer" /}
<script src="__PUBLIC__/static/js/jquery.form.js"></script>
<script src="__PUBLIC__/static/js/jquery.qrcode.js"></script>
<script src="__PUBLIC__/static/js/utf.js"></script>
<script>
	$("#qrcode").qrcode({
		render: "canvas", //设置渲染方式，有table和canvas，使用canvas方式渲染性能相对来说比较好
		text: "{$Think.session.info_user.no}",
		width: "200", //二维码的宽度
		height: "200", //二维码的高度
		background: "#ffffff", //二维码的后景色
		foreground: "#000000", //二维码的前景色
		src: "{$Think.session.info_user.logo}" //二维码中间的图片
	});
</script>